<template>
  <div>
    <el-row style="float:right" class="a">
      <el-button size="mini" @click="fh">返回</el-button>
      <el-button size="mini" @click="Mysubmit()">增加</el-button>
    </el-row>

    <el-form :inline="true" label-width="80px">
      <el-form-item label="酒店名称">
        <el-input style="width:1000px;" v-model="mergeForm.name"></el-input>
      </el-form-item>
      <el-form-item label="星级">
        <span class="demonstration">
          <el-rate v-model="mergeForm.star"></el-rate>
        </span>
      </el-form-item>
      <el-form-item label="酒店地址">
        <el-input style="width:1000px;" v-model="mergeForm.address"></el-input>
      </el-form-item>

      <el-form-item label="联系人">
        <el-input style="width:1000px;" v-model="mergeForm.linkName"></el-input>
      </el-form-item>

      <el-form-item label="酒店电话">
        <el-input size="small" v-model="mergeForm.linkTel"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        mergeForm: {
          name: null,
          star: null,
          address: null,
          linkName: null,
          linkTel: null,
          state:null,
        },
        tableData: []
      }
    },
    methods: {

      fh: function() {
        this.$router.push({
          path: '/AppMain/sellerList'
        })
      },
      Mysubmit() {
        this.mergeForm.state = 1
        this.axios.post(this.axios.urls.SYS_HOTELSELLER_MERGE, this.mergeForm).then((response) => {
          this.$router.push({
            path: '/AppMain/sellerList'
          })
          console.log(response);
        })
      },

    }
  }
</script>
<style>
  .el-row {
    text-align: center;
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .el-col {
    border-radius: 4px;
  }

  .bg-purple-dark {
    background: #99a9bf;
  }

  .bg-purple {
    background: #d3dce6;
  }

  .bg-purple-light {
    background: #e5e9f2;
  }

  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }

  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
